package com.aloha.auth.annotation;

import com.aloha.auth.support.CheckMode;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author zhdai
 * @date 2023/11/9 21:51
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface CheckPermission {
    String[] value() default {};

    CheckMode mode() default CheckMode.AND;
}
